import React ,{useState}from 'react'

export default function Index() {
    const [val,setVal] = useState("默认值")
    return (
        <div>
            <input type='text' value={val} onChange={(e)=>{setVal(e.target.value)}}/>
        </div>
    )
}
